---
title: algo.Cache.clear()
api: algo.Cache.clear
---

## Description

<Summary/>

If a _remove_ callback was given while constructing the **Cache** by [new Cache()](/reference/api/algo/Cache/constructor), it will be called with every key-value pair while they are deleted.

## Syntax

``` js
cache.clear()
```

## See Also

* [algo.Cache](/reference/api/algo/Cache)
* [remove()](/reference/api/algo/Cache/remove)
